<template>
  <lay-card class="error-page">
    <lay-exception status="403" title="403" describe="抱歉，你无权访问该页面">
      <template #extra>
        <a-button @click="refresh">刷新</a-button>
        <a-button type="primary" @click="goBack">返回</a-button>
      </template>
    </lay-exception>
  </lay-card>
</template>

<script setup>

import router from "@/router";

function refresh() {
  router.go(0)
}

function goBack() {
  router.back()
}

</script>

<style>
.error-page {
  padding-top: 200px;
  padding-bottom: 200px;
  margin: 10px;
}
</style>